.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 头部导航 */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
}

/* 患者信息卡片 */
.patientCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin: 12px 16px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.patientInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patientName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.patientId {
  font-size: 14px;
  color: #666;
}

.switchButton {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background-color: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: background-color 0.2s;
}

.switchButton:hover {
  background-color: #e0e0e0;
}

/* 标签切换 */
.tabContainer {
  display: flex;
  margin: 0 16px 16px;
  background-color: #fff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
}

.activeTab {
  background-color: #1890ff;
  color: #fff;
}

/* 医生列表 */
.doctorList {
  padding: 0 16px;
}

.doctorCard {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctorInfo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.doctorAvatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.doctorDetails {
  flex: 1;
}

.doctorName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.doctorTitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.doctorDepartment {
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.doctorHospital {
  font-size: 12px;
  color: #999;
}

/* 排队信息 */
.queueInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queueBadge {
  background-color: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.queueLabel {
  font-size: 12px;
  color: #d46b08;
  font-weight: 500;
}

.queueNumber {
  font-size: 18px;
  font-weight: 700;
  color: #fa8c16;
}

.queueLink {
  font-size: 14px;
  color: #1890ff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.queueLink:hover {
  background-color: #f0f8ff;
}

/* 弹出层样式 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.popup {
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 60vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.popupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #e8e8e8;
}

.popupHeader h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.closeButton {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 20px;
  color: #666;
  transition: background-color 0.2s;
}

.closeButton:hover {
  background-color: #e0e0e0;
}

.patientList {
  max-height: 40vh;
  overflow-y: auto;
}

.patientItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.patientItem:hover {
  background-color: #f8f8f8;
}

.patientItem.selected {
  background-color: #e6f7ff;
}

.patientItem .patientInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patientItem .patientName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.patientItem .patientId {
  font-size: 14px;
  color: #666;
}

.checkIcon {
  color: #1890ff;
  font-size: 18px;
  font-weight: bold;
}

/* 检查标签页特殊布局 */
.examinationCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.waitingInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff7e6;
  border: 2px solid #ffd591;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 120px;
}

.waitingLabel {
  font-size: 12px;
  color: #d46b08;
  font-weight: 500;
  margin-bottom: 8px;
}

.waitingNumber {
  font-size: 32px;
  font-weight: 700;
  color: #fa8c16;
  line-height: 1;
}

.serviceInfo {
  flex: 1;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.serviceName {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.serviceHospital {
  font-size: 14px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .patientCard {
    margin: 8px 12px;
    padding: 12px;
  }
  
  .tabContainer {
    margin: 0 12px 12px;
  }
  
  .doctorList {
    padding: 0 12px;
  }
  
  .doctorCard {
    padding: 12px;
  }
  
  .doctorAvatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .doctorName {
    font-size: 15px;
  }
  
  .doctorTitle,
  .doctorDepartment {
    font-size: 13px;
  }
  
  .doctorHospital {
    font-size: 11px;
  }
  
  .queueNumber {
    font-size: 16px;
  }
  
  .queueLabel {
    font-size: 11px;
  }
  
  .queueLink {
    font-size: 13px;
  }
  
  /* 检查标签页移动端样式 */
  .examinationCard {
    padding: 16px;
  }
  
  .waitingInfo {
    min-width: 100px;
    padding: 12px 16px;
  }
  
  .waitingNumber {
    font-size: 28px;
  }
  
  .serviceInfo {
    margin-left: 16px;
  }
  
  .serviceName {
    font-size: 16px;
  }
  
  .serviceHospital {
    font-size: 13px;
  }
}
